package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.redis.KeyPrefix;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class MemberkeyPrefix implements KeyPrefix {
    private int expireTime;
    private String keyPrefix;
    @Override
    public int getExpireTime() {
        return this.expireTime;
    }

    @Override
    public String getKey() {
        return this.keyPrefix;
    }

    public MemberkeyPrefix(int expireTime, String keyPrefix) {
        this.expireTime = expireTime;
        this.keyPrefix = keyPrefix;
    }

    public MemberkeyPrefix() {
    }

    public static final MemberkeyPrefix USER_TOKEN = new MemberkeyPrefix(1800,"userToken");
}
